package com.cdream.basic.classiccase.miaosha.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdream.basic.classiccase.miaosha.entity.Item;
import com.cdream.basic.classiccase.miaosha.entity.OrderInfo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zs
 * @since 2021-07-17
 */
public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfo createOrderBySql(Integer userId, Integer itemId, Integer promoId, Integer amount, String stockLogId) throws RuntimeException;

    OrderInfo createOrderByRedis(Integer userId, Integer itemId, Integer promoId, Integer amount, String stockLogId) throws RuntimeException;

    OrderInfo createOrderByTransMq(Integer userId, Integer itemId, Integer promoId, Integer amount, String stockLogId) throws RuntimeException;

    void realUpdate(Item item);
}
